<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="oneroom.user.map.mapModel" %>
<%@ page import="oneroom.admin.board.boardModel" %>
<jsp:useBean id="mapDao" scope="page" 	class="oneroom.user.map.mapDao" />
<%
	List oneList = mapDao.getTopTen(10,"1");  
	List twoList = mapDao.getTopTen(10,"2");  
	List threeList = mapDao.getTopTen(10,"3");
	List aptList = mapDao.getTopTen(10,"4");
	List houseList = mapDao.getTopTen(10,"5");	
	//List boardList =  mapDao.getBoard("2");
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>원룸몬스터</title>

<link href="/room/css/all.css" rel="stylesheet" type="text/css" />
<script src="/room/script/swfobject_modified.js" type="text/javascript"></script>
<script src="/room/script/common.js" type="text/javascript"></script>
<script type="text/javascript" src="/room/script/jquery-1.6.min.js"></script>
<script type="text/javascript">
<!--
var goView = function(area){
	document.getElementById("area").value = area;
	if(area == "전국"){
		document.getElementById("frm").action = "map_list2_1.jsp";
	}
	document.getElementById("frm").submit();
};
var detailView = function(oneroomseq){
	document.getElementById("oneroom_seq").value = oneroomseq;
	document.getElementById("frm").action = "/room/map/map_view.jsp";
	document.getElementById("frm").submit();
};
//-->
</script>
</head>

<body>
<div align="center"> 

<div id="content">

<!----------------왼쪽---------------->  
<%@ include file="/room/common/left.jsp" %>
<!----------------왼쪽끝---------------->  


<!----------------가운데 시작----------------> 
 <div id="rgt">
  <div id="con01">
   <div class="top bb1"><img src="/room/img/txt_top.gif" /></div>
   
   <div class="map1">
<!-- saved from url=(0013)about:internet -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="680" height="320" id="map_yt02_0" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/room/fla/map_yt02_0.swf?mNum=0&sNum=12" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<param name="bgcolor" value="#ffffff" />
<embed src="/room/fla/map_yt02_0.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="680" height="320" name="map_yt02_0" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

   <!-- 
     <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="625" height="381">
       <param name="movie" value="/room/fla/map01.swf" />
       <param name="quality" value="high" />
       <param name="wmode" value="opaque" />
       <param name="swfversion" value="6.0.65.0" />
       <param name="expressinstall" value="Scripts/expressInstall.swf" />
       < !--[if !IE]>-- >
       <object type="application/x-shockwave-flash" data="/room/fla/map01.swf" width="625" height="381">
         < !--<![endif]-- >
         <param name="quality" value="high" />
         <param name="wmode" value="opaque" />
         <param name="swfversion" value="6.0.65.0" />
         <param name="expressinstall" value="Scripts/expressInstall.swf" />
         <div>
           <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
           <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
         </div>
         < !--[if !IE]>-- >
       </object>
       < !--<![endif]-- >
     </object>
      -->
   </div>
   
    <div>
    <div class="list">
    <div >
      <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
      <div class="tit"><!-- <a class="a" href="javascript:goView('서울');"> </a>-->원룸 직거래 </div>
    </div>       
    <div class="lst_line">
    <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(oneList != null && oneList.size() > 0){ %>
  <%int oneInt = oneList.size();%>
  <%if(oneInt > 5){ oneInt = 5; }%>
  	<%for(int i=0; i<oneInt; i++){ %>
  	<% mapModel model = (mapModel)oneList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
    등록 된 매물이 없습니다.
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(oneList != null && oneList.size() > 0){ %>
   <%int oneInt = oneList.size();%>
   <%if(oneInt > 5){ oneInt = 5; }%>
     <%for(int i=0; i<oneInt; i++){ %>
  	<% mapModel model = (mapModel)oneList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %> 
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 5){ %>
    <td>&nbsp;</td> 
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
  &nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
<div class="lst_line">
    <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(oneList != null && oneList.size() > 0){ %>
  <%int oneInt = oneList.size();%>
  <%if(oneInt == 10){ oneInt = 10; }%>
  	<%for(int i=5; i<oneInt; i++){ %>
  	<% mapModel model = (mapModel)oneList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
    &nbsp;
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(oneList != null && oneList.size() > 0){ %>
   <%int oneInt = oneList.size();%>
  <%if(oneInt == 10){ oneInt = 10; }%>
  	<%for(int i=5; i<oneInt; i++){ %>
  	<% mapModel model = (mapModel)oneList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>       
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 10){ %>
    <td>&nbsp;</td> 
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
  &nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
</div>

<div class="list">
    <div >
      <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
      <div class="tit"><!-- <a class="a" href="javascript:goView('경기');"></a>-->투룸 직거래 </div>
    </div> 
    <div class="lst_line">
    <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(twoList != null && twoList.size() > 0){ %>
   <%int twoInt = twoList.size();%>
  <%if(twoInt > 5){ twoInt = 5; }%>
  	<%for(int i=0; i<twoInt; i++){ %>
  	<% mapModel model = (mapModel)twoList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
    등록 된 매물이 없습니다.
    </td>
    <%} %>
  </tr>
   <tr>
     <%if(twoList != null && twoList.size() > 0){ %>
     <%int twoInt = twoList.size();%>
  	<%if(twoInt > 5){ twoInt = 5; }%>
  	<%for(int i=0; i<twoInt; i++){ %>
  	<% mapModel model = (mapModel)twoList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>       
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
<div class="lst_line">
    <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(twoList != null && twoList.size() > 0){ %>
  	<%int twoInt = twoList.size();%>
  <%if(twoInt == 10){ twoInt = 10; }%>
  	<%for(int i=5; i<twoInt; i++){ %>
  	<% mapModel model = (mapModel)twoList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
    <%}else{ %>
    <td colspan="9">
   &nbsp;
    </td>
    <%} %>
  </tr>
   <tr>
     <%if(twoList != null && twoList.size() > 0){ %>
       	<%int twoInt = twoList.size();%>
  <%if(twoInt == 10){ twoInt = 10; }%>
  	<%for(int i=5; i<twoInt; i++){ %>
  	<% mapModel model = (mapModel)twoList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
</div>

<div class="list">
    <div >
      <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
      <div class="tit"><!-- <a class="a" href="javascript:goView('전국');"> </a>-->쓰리룸 직거래 </div>
    </div> 
    <div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(threeList != null && threeList.size() > 0){ %>
  <%int threeInt = threeList.size();%>
  <%if(threeInt > 5){ threeInt = 5; }%>
  	<%for(int i=0; i<threeInt; i++){ %>
  	<% mapModel model = (mapModel)threeList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    등록 된 매물이 없습니다.
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(threeList != null && threeList.size() > 0){ %>
	<%int threeInt = threeList.size();%>
  	<%if(threeInt > 5){ threeInt = 5; }%>
  	<%for(int i=0; i<threeInt; i++){ %>
  	<% mapModel model = (mapModel)threeList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
<div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(threeList != null && threeList.size() > 0){ %>
  <%int threeInt = threeList.size();%>
  <%if(threeInt == 10){ threeInt = 10; }%>
  	<%for(int i=5; i<threeInt; i++){ %>
  	<% mapModel model = (mapModel)threeList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    &nbsp;
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(threeList != null && threeList.size() > 0){ %>
	<%int threeInt = threeList.size();%>
  	<%if(threeInt == 10){ threeInt = 10; }%>
  	<%for(int i=5; i<threeInt; i++){ %>
  	<% mapModel model = (mapModel)threeList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
</div>

<div class="list">
    <div >
      <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
      <div class="tit">아파트 직거래 </div>
    </div> 
    <div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(aptList != null && aptList.size() > 0){ %>
  <%int aptInt = aptList.size();%>
  <%if(aptInt > 5){ aptInt = 5; }%>
  	<%for(int i=0; i<aptInt; i++){ %>
  	<% mapModel model = (mapModel)aptList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    등록 된 매물이 없습니다.
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(aptList != null && aptList.size() > 0){ %>
	<%int aptInt = aptList.size();%>
  	<%if(aptInt > 5){ aptInt = 5; }%>
  	<%for(int i=0; i<aptInt; i++){ %>
  	<% mapModel model = (mapModel)aptList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
<div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(aptList != null && aptList.size() > 0){ %>
  <%int aptInt = aptList.size();%>
  <%if(aptInt == 10){ aptInt = 10; }%>
  	<%for(int i=5; i<aptInt; i++){ %>
  	<% mapModel model = (mapModel)aptList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    &nbsp;
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(aptList != null && aptList.size() > 0){ %>
	<%int aptInt = aptList.size();%>
  	<%if(aptInt == 10){ aptInt = 10; }%>
  	<%for(int i=5; i<aptInt; i++){ %>
  	<% mapModel model = (mapModel)aptList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
</div>

<div class="list">
    <div >
      <div class="pb10"><img src="/room/img/line_blue.gif" width="32" height="2" /></div>
      <div class="tit">주택/빌라 직거래 </div>
    </div> 
    <div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(houseList != null && houseList.size() > 0){ %>
  <%int houseInt = houseList.size();%>
  <%if(houseInt > 5){ houseInt = 5; }%>
  	<%for(int i=0; i<houseInt; i++){ %>
  	<% mapModel model = (mapModel)houseList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    등록 된 매물이 없습니다.
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(houseList != null && houseList.size() > 0){ %>
	<%int houseInt = houseList.size();%>
  	<%if(houseInt > 5){ houseInt = 5; }%>
  	<%for(int i=0; i<houseInt; i++){ %>
  	<% mapModel model = (mapModel)houseList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 5){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
<div class="lst_line">
      <table width="596" border="0" cellspacing="0" cellpadding="0">
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
    <col width="12px;" />
    <col width="109px;" />
  <tr>
  <%if(houseList != null && houseList.size() > 0){ %>
  <%int houseInt = houseList.size();%>
  <%if(houseInt == 10){ houseInt = 10; }%>
  	<%for(int i=5; i<houseInt; i++){ %>
  	<% mapModel model = (mapModel)houseList.get(i);%>
    <td class="thum01"><a href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%if(model.getPhoto1_main().equals("1")){ %>
		<img src="/download/<%=model.getPhoto1_small() %>?name=<%=model.getPhoto1_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("2")){ %>
		<img src="/download/<%=model.getPhoto2_small() %>?name=<%=model.getPhoto2_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("3")){ %>
		<img src="/download/<%=model.getPhoto3_small() %>?name=<%=model.getPhoto3_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("4")){ %>
		<img src="/download/<%=model.getPhoto4_small() %>?name=<%=model.getPhoto4_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("5")){ %>
		<img src="/download/<%=model.getPhoto5_small() %>?name=<%=model.getPhoto5_small() %>&kind=img" />
	<%}else if(model.getPhoto1_main().equals("6")){ %>
		<img src="/download/<%=model.getPhoto6_small() %>?name=<%=model.getPhoto6_small() %>&kind=img" />
	<%} %></a></td>
	<%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
        <%}else{ %>
    <td colspan="9">
    &nbsp;
    </td>
    <%} %>
  </tr>
   <tr>
   <%if(houseList != null && houseList.size() > 0){ %>
	<%int houseInt = houseList.size();%>
  	<%if(houseInt == 10){ houseInt = 10; }%>
  	<%for(int i=5; i<houseInt; i++){ %>
  	<% mapModel model = (mapModel)houseList.get(i);%>
    <td class="pt10"><span class="fw"><a class="b" href="javascript:detailView('<%=model.getOneroom_seq()%>');"><%=model.getRoomkind() %>(<%=model.getRoomarea() %>평)</a></span> <br />
      <%=model.getAddress2() %> / <%=model.getAddress3() %> <br />
      <%if(model.getRoomoption() != null && model.getRoomoption().equals("D")){ %>
      <img src="/room/img/icon_d.gif" />
      <%}else if(model.getRoomoption() != null && model.getRoomoption().equals("M")){ %>
      <img src="/room/img/icon_m.gif" />
      <%} %>      
      <%if(model.getRoommoney() != null && !model.getRoommoney().equals("")){//전세 %>
      <img src="/room/img/icon_year.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommoney() %></span>
      <%}else if(model.getRoommonth1() != null && !model.getRoommonth1().equals("")){//월세 %>
      <img src="/room/img/icon_mon.gif" />&nbsp;<span class="fw c_org"><%=model.getRoommonth1() %> / <%=model.getRoommonth2() %></span>
      <%} %>
      </td>
     <%if(i < 10){ %>
    <td>&nbsp;</td>
    <%} %>
    <%} %>
   <%}else{ %>
    <td colspan="9">
  		&nbsp;
    </td>
    <%} %>
  </tr>
</table>
</div>
</div>

</div>
</div>  
<!----------------가운데 끝---------------->
<!----------------오른쪽 시작---------------->  
<%@ include file="/room/common/right.jsp" %>  
<!----------------오른쪽 끝---------------->
</div>
<!-------------푸터영역----------> 
<%@ include file="/room/common/footer.jsp" %> 
<!-------------푸터영역----------> 
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>
<form action="map_list2.jsp" method="post" id="frm" name="frm">
<input type="hidden" name="roomkind" id="roomkind" />
<input type="hidden" name="area" id="area" />
<input type="hidden" name="oneroom_seq" id="oneroom_seq" />	
</form>
</body>
</html>
